package com.ruoyi.work.service;


import com.ruoyi.work.domain.Product;
import com.ruoyi.work.query.ProductQuery;
import com.ruoyi.work.query.TablePageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * 接口
 */
public interface IProductService {

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<Product> query(ProductQuery qo);
    /**
     * 查单个
     * @param id
     * @return
     */
    Product get(Long id);
    /**
     * 保存
     * @param product
     */
    void save(Product product);

  
    /**
     * 更新
     * @param product
     */
    int update(Product product);

    /**
     *  批量删除
     * @param ids
     */
    void deleteBatch(String ids);

    /**
     * 查询全部
     * @return
     */
    List<Product> list();


    int insertArticle(String name, Integer price, Integer salePrice, String brand, String code, MultipartFile picture) throws IOException;

    int update2(String name, Integer price, Integer salePrice, String brand, String code, MultipartFile picture) throws IOException;

}
